#ifndef QT_UTILS_H
#define QT_UTILS_H
#include <QAction>
#include <QDir>

QIcon newIcon(const QString& iconName);

QAction* newAction(
    QObject* parent,
    const QString& text,
    const std::function<void()>& slot = nullptr,
    const QVariant& shortcut = QVariant(),
    const QString& icon = QString(),
    const QString& tip = QString(),
    bool checkable = false,
    bool enabled = true,
    bool checked = false
);

#endif
